﻿<Controls:SinacorWindow
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:Custom="http://schemas.xceed.com/wpf/xaml/datagrid"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" 
    xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls"    
    xmlns:DataGrid="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient.DataGrid;assembly=Sinacor.Infra.UI.Controls"
    xmlns:Model="clr-namespace:Sinacor.UI.Bovespa.ManutencaoOrdens.Model;assembly=Sinacor.UI.Bovespa.ManutencaoOrdens.Model"
    WindowStartupLocation="CenterScreen" 
    WindowState="Maximized" 
    Title="{DynamicResource Bovespa.Ordens.Label.CasamentoManual}"
    x:Class="Sinacor.UI.Bovespa.ManutencaoOrdens.View.SmartClient.CasamentoManual"
    ModulePlus="False"
    ModuleId="ORD">
    
    <Controls:SinacorWindow.ContextMenu>
        <Controls:SinacorContextMenu x:Name="menuTela" >
            <Controls:SinacorContextMenuItem Header="{DynamicResource Bovespa.Ordens.Label.Pesquisa}" 
                                             x:Name="menuPesquisar"
                                             Click="menuPesquisar_Click"
                                             IsEnabled="True"
                                             CausesValidation="True"/>
           
        </Controls:SinacorContextMenu>
    </Controls:SinacorWindow.ContextMenu>
    

    <Controls:SinacorExpanderContainer x:Name="ExpanderContainer"
                                       VerticalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" MaxHeight="130"/>
            <RowDefinition Height="*" MinHeight="110" />
            <RowDefinition Height="6" />
            <RowDefinition Height="*" MinHeight="130"/>
        </Grid.RowDefinitions>

        <Controls:SinacorExpander HorizontalAlignment="Stretch"
                                  VerticalAlignment="Stretch"                                  
                                  Header="{DynamicResource Bovespa.Ordens.Label.Pesquisa}"
                                  AllowExpand="True"
                                  IsExpanded="True"
                                  Grid.Row="0">
            <Grid>
                <Controls:SinacorLabel HorizontalAlignment="Left"
            						   Content="{DynamicResource Bovespa.Ordens.Label.dataMovimento}"
            		      			   Width="110" 
									   Margin="0,0,0,0" 
									   VerticalAlignment="Top"  
									   HorizontalContentAlignment="Right"/>
                <Controls:SinacorComboBox 
                                          Margin="114,0,0,0"
            							  Width="100"
            							  TabIndex="1"
            							  HorizontalAlignment="Left"
										  VerticalAlignment="Top"
                                          MaxLength="10"  
                                          IsRequired="True"
                                          Name="cmbDataMovimento"   
                                          ItemsSource="{Binding Calendario}"
                                          SelectedValuePath="DataFormatada" 
                                          DisplayMemberPath="DataFormatada" 
                                          SelectedValue="{Binding Filtro.DataPregao}"/>
                <Controls:SinacorLabel Content="{DynamicResource Bovespa.Ordens.Label.Cliente}"
                                       Width="65"
                                       Margin="218,0,0,0" 
									   HorizontalAlignment="Left" 
									   HorizontalContentAlignment="Right"
                                       IsTargetFieldRequired="True"/>
                <Controls:SinacorTextBox Name="txtApelidoFiltro"
                                         MaxLength="18"
                                         IsRequired="true"
                                         RequiredErrorMessage="Bovespa.Clientes.Message.ClienteObrigatorio"
                                        VerticalAlignment="Top"
                                         Margin="287,0,0,0"
                                         Width="200"
                                         TabIndex="2"                                         
                                         Text="{Binding Filtro.ApelidoCliente}" HorizontalAlignment="Left"/>
                <Controls:SinacorButton HorizontalAlignment="Left"
										VerticalAlignment="Top"
                                        Name="btnPesquisaCliente"
                                        OnBufferedClick="btnPesquisaCliente_OnBufferedClick"
										Content="SinacorButton"
										Icon="IconButtonClient"
										ToolTip="{DynamicResource Bovespa.Ordens.Label.PesquisarCliente}" 
										Margin="491,0,0,0" TabIndex="3"/>
                <Controls:SinacorLabel HorizontalAlignment="Left"
                                       Content="{DynamicResource Bovespa.Ordens.Label.Ativo}"
                                       Width="65" 
									   Margin="517,0,0,0" 
									   HorizontalContentAlignment="Right"
                                       IsTargetFieldRequired="True"/>
                <Controls:SinacorTextBox VerticalAlignment="Top"
                                         Name="txtAtivoFiltro"
                                         MaxLength="12"
                                         IsRequired="True" 
                                         RequiredErrorMessage="Bovespa.Ordens.Message.InformeAtivo"
                                         Margin="586,0,0,0"
                                         Width="140"
                                         TabIndex="4"
										 Text="{Binding Filtro.Ativo}"
										 HorizontalAlignment="Left"/>
                <Controls:SinacorButton HorizontalAlignment="Left"
                                        Name="btnPesquisaAtivo"
                                        OnBufferedClick="btnPesquisaAtivo_OnBufferedClick"
										VerticalAlignment="Top"
										Content="SinacorButton"
										Icon="IconButtonSearch"										
										ToolTip="{DynamicResource Bovespa.Ordens.Tooltip.PesquisarAtivo}" 
										Margin="730,0,0,0" TabIndex="5"/>
                
                <Controls:SinacorGroupBox HorizontalAlignment="Left" 
										  VerticalAlignment="Top" 
										  Header="{DynamicResource Bovespa.Ordens.Label.Natureza}" 
										  Height="55" 
										  Margin="0,25,0,0" 
										  Width="335">
                    <Grid>
                        <Controls:SinacorRadioButton HorizontalAlignment="Left" 
													 VerticalAlignment="Top" 
													 Content="{DynamicResource Bovespa.Ordens.Label.CompraeVenda}" 
													 GroupName="Natureza" 
                                                     Name="rbCompraVenda"
													 Height="Auto" 
													 Width="136" 
													 TabIndex="6" IsChecked="True"/>
                        <Controls:SinacorRadioButton HorizontalAlignment="Left" 
													 VerticalAlignment="Top" 
													 Content="{DynamicResource Bovespa.Ordens.Label.Compra}" 
													 GroupName="Natureza" 
                                                     Name="rbCompra"
													 Height="Auto" 
													 Width="93" 
													 Margin="140,0,0,0" 
													 TabIndex="7"/>
                        <Controls:SinacorRadioButton HorizontalAlignment="Left" 
													 VerticalAlignment="Top" 
													 Content="{DynamicResource Bovespa.Ordens.Label.Venda}" 
													 GroupName="Natureza"
                                                     Name="rbVenda"
													 Height="Auto" 
													 Width="86" 
													 Margin="237,0,0,0" 
													 TabIndex="8"/>
                    </Grid>
                </Controls:SinacorGroupBox>
                <Controls:SinacorGroupBox HorizontalAlignment="Left" 
										  VerticalAlignment="Top" 
										  Header="{DynamicResource Bovespa.Ordens.Label.EstadoOrdem}" 
										  Height="55" 
										  Width="486" 
										  Margin="339,25,0,0">
                    <Grid>
                        <Controls:SinacorRadioButton HorizontalAlignment="Left" 
													 VerticalAlignment="Top" 
													 Content="{DynamicResource Bovespa.Ordens.Label.Casadas}" 
													 GroupName="Estado" 
                                                     Name="rbCasadas"
													 Height="Auto" 
													 Width="95" 
													 Foreground="{DynamicResource BrushGridRowBusiness02}" 
													 TabIndex="9"/>
                        <Controls:SinacorRadioButton HorizontalAlignment="Left" 
													 VerticalAlignment="Top" 
													 Content="{DynamicResource Bovespa.Ordens.Label.CasadasParcialmente}" 
													 GroupName="Estado"
                                                     Name="rbCasadasParcial"
													 Height="Auto" 
													 Width="161" 
													 Margin="99,0,0,0" 
													 Foreground="{DynamicResource BrushGridRowBusiness04}" 
													 TabIndex="10"/>
                        <Controls:SinacorRadioButton HorizontalAlignment="Left" 
													 VerticalAlignment="Top" 
													 Content="{DynamicResource Bovespa.Ordens.Label.NaoCasadas}" 
													 GroupName="Estado" 
                                                     Name="rbNaoCasadas"
													 Height="Auto" 
													 Width="118" 
													 Margin="264,0,0,0" 
													 Foreground="{DynamicResource BrushGridRowBusiness06}" 
													 TabIndex="11"/>
                        <Controls:SinacorRadioButton HorizontalAlignment="Left" 
													 VerticalAlignment="Top" 
													 Content="{DynamicResource Bovespa.Ordens.Label.Todas}" 
													 GroupName="Estado"
                                                     Name="rbTodas"
													 Height="Auto" 
													 Width="86" 
													 Margin="386,0,0,0" 
													 TabIndex="12" IsChecked="True"/>
                    </Grid>
                </Controls:SinacorGroupBox>
                <Controls:SinacorButton HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        Content="{DynamicResource Bovespa.Ordens.Label.Pesquisar}"
                                        Margin="830,34,0,0"
                                        Name="btnPesquisar"
                                        OnBufferedClick="btnPesquisar_OnBufferedClick"
                                        Width="110"
                                        TabIndex="13"
                                        CausesValidation="True"
                                        IsDefault="True"/>
                <Controls:SinacorButton HorizontalAlignment="Left"
					                	VerticalAlignment="Top"
					                	Content="{DynamicResource Bovespa.Ordens.Label.NovaPesquisa}"
                                        Name="btnNovaPesquisa"
                                        OnBufferedClick="btnNovaPesquisa_OnBufferedClick"
					                	Margin="830,58,0,0"
					                	Width="110"
					                	TabIndex="14"
					                	IsDefault="False"/>

            </Grid>
        </Controls:SinacorExpander>
        <Controls:SinacorExpander HorizontalAlignment="Stretch"												
					        	  VerticalAlignment="Stretch"												
					        	  Header="{DynamicResource Bovespa.Ordens.Label.Ordens}"
					        	  IsExpanded="True"
								  AllowExpand="True"
								  Grid.Row="1"
								  Margin="0,4,0,0"
								  HorizontalSplitter="{Binding ElementName=horizontalSpliter1}" MinHeight="25">
            <Grid>
                <Controls:SinacorDataGrid 							 							        			  
                                            Name="dtgOrdem"
                                            ItemsSource="{Binding ListaOrdens}" 					        			 							 		
                                            AllowBeginInsert="False" 							 		
                                            AllowBeginUpdate="False" 							 		
                                            AllowCancelInsert="False" 							 		
                                            AllowCancelUpdate="False" 							 		
                                            AllowEndInsert="False" 							 		
                                            AllowEndUpdate="False" 
                                            BufferedSelectionChanged="dtgOrdem_BufferedSelectionChanged"                                            
                                            AllowSave="False" 							 		
                                            AllowSaveAll="False" 							 		
                                            AllowUndo="False" 							 		
                                            AllowUndoAll="False" 							 		
                                            AllowUndoLast="False"                                            
                                            SelectionMode="Single"
                                            HorizontalAlignment="Stretch"
                                            ApplyingStyle="dtgOrdem_ApplyingStyle"
                                            Margin="0,0,0,0" IsTabStop="False">                  


                    <Controls:SinacorDataGrid.Columns>                        
                        <Controls:Column Name="Operador"
                                         Title="Bovespa.Ordens.Label.Operador"
                                         DisplayMemberPath="LoginOperador"
                                         HorizontalCellAlignment="Right">
                        </Controls:Column>
                        <Controls:Column Name="DataOrdem"
                                         Title="Bovespa.Ordens.Label.DataOrdem"
                                         DisplayMemberPath="DataOrdem"
                                         HorizontalCellAlignment="Center">
                        </Controls:Column>
                        <Controls:Column Name="Numero"
                                         Title="Bovespa.Ordens.Label.Numero"
                                         DisplayMemberPath="NumeroOrdem"
                                         HorizontalCellAlignment="Right">
                        </Controls:Column>
                        <Controls:Column Name="Seq"
                                         Title="Bovespa.Ordens.Label.Seq"
                                         DisplayMemberPath="NumeroOrdemSubSequencia"
                                         HorizontalCellAlignment="Right">
                        </Controls:Column>
                        <Controls:Column Name="Merc"
                                         Title="Bovespa.Ordens.Label.Merc"
                                         DisplayMemberPath="Mercado"
                                         HorizontalCellAlignment="Center">
                        </Controls:Column>
                        <Controls:Column Name="Ativo"
                                         Title="Bovespa.Ordens.Label.Ativo"
                                         DisplayMemberPath="Ativo">
                        </Controls:Column>
                        <Controls:Column Name="Cliente"
                                         Title="Bovespa.Ordens.Label.Cliente"
                                         DisplayMemberPath="CodigoCliente"
                                         HorizontalCellAlignment="Right">
                        </Controls:Column>
                        <Controls:Column Name="CV"
                                         Title="Bovespa.Ordens.Label.CV"
                                         DisplayMemberPath="NaturezaOperacao"
                                         HorizontalCellAlignment="Center">
                        </Controls:Column>
                        <Controls:Column Name="Quantidade"
                                         Title="Bovespa.Ordens.Label.Quantidade"
                                         StringFormat="N4"
                                         DisplayMemberPath="Quantidade"
                                         HorizontalCellAlignment="Right">
                        </Controls:Column>
                        <Controls:Column Name="Saldo"
                                         Title="Bovespa.Ordens.Label.Saldo"
                                         StringFormat="N4"
                                         DisplayMemberPath="Saldo"
                                         HorizontalCellAlignment="Right">
                        </Controls:Column>
                        <Controls:Column Name="Bolsa"
                                         Title="Bovespa.Ordens.Label.Bolsa"
                                         DisplayMemberPath="CodigoBolsa"
                                         HorizontalCellAlignment="Right">
                        </Controls:Column>
                        <Controls:Column Name="Nome"
                                         Title="Bovespa.Ordens.Label.Nome"
                                         DisplayMemberPath="NomeCliente">
                        </Controls:Column>
                        <Controls:Column Name="LimitePreco"
                                         Title="Bovespa.Ordens.Label.LimPreco"
                                         StringFormat="N8"
                                         DisplayMemberPath="Preco"
                                         HorizontalCellAlignment="Right">
                        </Controls:Column>
                        <Controls:Column Name="Carteira"
                                         Title="Bovespa.Ordens.Label.Carteira"
                                         DisplayMemberPath="Carteira"
                                         HorizontalCellAlignment="Right">
                        </Controls:Column>
                    </Controls:SinacorDataGrid.Columns>
                </Controls:SinacorDataGrid>
            </Grid>
        </Controls:SinacorExpander>
        <Controls:SinacorHorizontalGridSplitter x:Name="horizontalSpliter1" Margin="0,3,0,0" Grid.Row="2"/>
        <Controls:SinacorExpander HorizontalAlignment="Stretch"												
                                  VerticalAlignment="Stretch"												
                                  Header="{DynamicResource Bovespa.Ordens.Label.Negocios}"
                                  Grid.Row="3"
                                  IsExpanded="True"
								  AllowExpand="True"
								  Margin="0,4,0,0" MinHeight="25">
            <Controls:SinacorDragDrop x:Name="drdCasamento">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Controls:SinacorGroupBox 	HorizontalAlignment="Stretch"
											VerticalAlignment="Stretch"
											Header="{DynamicResource Bovespa.Ordens.Label.Disponiveis}"
											Grid.Column="0"
											Width="Auto"
											Height="Auto"
											Margin="5,0,0,0">

                        <DataGrid:SinacorDataGrid  	
                                              Name="dtgNegociosDisp"
                                              Grid.Row="0"
                                              ApplyingStyle="dtgNegociosDisp_ApplyingStyle"
                                              ItemsSource="{Binding NegociosDisponiveis}" 	                                                  							                			  
				                			  SelectionMode="Extended" 		
                                              Controls:SinacorDragDrop.IsDragSource="True"
                                              Controls:SinacorDragDrop.IsDropTarget="True"
                                              Drop="dtgNegociosDisp_Drop" >

                            <DataGrid:SinacorDataGrid.ContextMenuTemplate>
                                <DataTemplate>
                                    <StackPanel>
                                        <Controls:SinacorContextMenuItem Name="menuEfetuarCasamentoDisp"
                                                                         Header="{DynamicResource Bovespa.ManutencaoOrdens.Label.EfetuarCasamento}"
                                                                        Click="menuEfetuarCasamentoOrdem_Click"
                                                                        Loaded="menuEfetuarCasamentoDisp_Loaded"/>

                                    </StackPanel>
                                </DataTemplate>
                            </DataGrid:SinacorDataGrid.ContextMenuTemplate>

                            <DataGrid:SinacorDataGrid.Columns>
                                <DataGrid:DataGridTextColumn Name="Data_Disp"								 				 									 				
            								 Header="{DynamicResource Bovespa.Ordens.Label.Data}"
            								 Binding="{Binding DataPregao}"
                                             HorizontalCellAlignment="Center"/>
                                <DataGrid:DataGridTextColumn Name="Numero"								 				 									 				
            								 Header="{DynamicResource Bovespa.Ordens.Label.Numero}"
            								 Binding="{Binding Numero}"
                                             HorizontalCellAlignment="Right"/>
                                <DataGrid:DataGridTextColumn Name="Tipo"								 				 									 				
            								 Header="{DynamicResource Bovespa.Ordens.Label.Tipo}"
            								 Binding="{Binding Mercado.Text}"
                                             HorizontalCellAlignment="Center"/>
                                <DataGrid:DataGridTextColumn Name="Ativo"								 				 									 				
            								 Header="{DynamicResource Bovespa.Ordens.Label.Ativo}"
            								 Binding="{Binding Codigo}"/>
                                <DataGrid:DataGridTextColumn Name="CV"								 				 									 				
            								 Header="{DynamicResource Bovespa.Ordens.Label.CV}"
            								 Binding="{Binding NaturezaOperacao.Text}"
                                             HorizontalCellAlignment="Center"/>
                                <DataGrid:DataGridTextColumn Name="Quantidade"								 				 									 				
            								 Header="{DynamicResource Bovespa.Ordens.Label.Quantidade}"
            								 Binding="{Binding Quantidade, StringFormat=N4}"
                                             HorizontalCellAlignment="Right"/>
                                <DataGrid:DataGridTextColumn Name="Saldo"								 				 									 				
            								 Header="{DynamicResource Bovespa.Ordens.Label.Saldo}"
            								 Binding="{Binding Saldo, StringFormat=N4}"
                                             HorizontalCellAlignment="Right"/>
                                <DataGrid:DataGridTextColumn Name="Preco"
            								 Header="{DynamicResource Bovespa.Ordens.Label.Preco}"
            								 Binding="{Binding Valor, StringFormat=N8}"
                                             HorizontalCellAlignment="Right"/>
                                <DataGrid:DataGridTextColumn Name="Bolsa"								 				 									 				
            								 Header="{DynamicResource Bovespa.Ordens.Label.Bolsa}"
            								 Binding="{Binding Bolsa}"
                                             HorizontalCellAlignment="Right"/>
                                <DataGrid:DataGridTextColumn Name="Operador"								 				 									 				
            								 Header="{DynamicResource Bovespa.Ordens.Label.Operador}"
            								 Binding="{Binding Operador}"
                                             HorizontalCellAlignment="Right"/>
                            </DataGrid:SinacorDataGrid.Columns>
                        </DataGrid:SinacorDataGrid>
                    </Controls:SinacorGroupBox>
                    <Controls:SinacorGroupBox 	HorizontalAlignment="Stretch"
											VerticalAlignment="Stretch"
											Header="{DynamicResource Bovespa.Ordens.Label.Executados}"
											Grid.Column="1"
											Width="Auto"
											Height="Auto"
											Margin="5,0,0,0">
                        <Grid 	HorizontalAlignment="Stretch"
							VerticalAlignment="Stretch"
							Width="Auto"
							Height="Auto">
                            <DataGrid:SinacorDataGrid 
                                        Name="dtgNegociosExec"
                                        ApplyingStyle="dtgNegociosExec_ApplyingStyle"
                                        ItemsSource="{Binding NegociosExecutados}" 	                                                  							 						            				          						 		
                                        SelectionMode="Extended" 		
                                        HorizontalAlignment="Stretch"
                                        VerticalAlignment="Stretch"
                                        Width="Auto"
                                        Margin="0,0,0,0"
                                        Controls:SinacorDragDrop.IsDragSource="True"
                                        Controls:SinacorDragDrop.IsDropTarget="True"
                                        Drop="dtgNegociosExec_Drop">

                                <DataGrid:SinacorDataGrid.ContextMenuTemplate>
                                    <DataTemplate>
                                        <StackPanel>
                                            <Controls:SinacorContextMenuItem Name="menuEfetuarDescasamentoExec"
                                                                             Header="{DynamicResource Bovespa.ManutencaoOrdens.Label.EfetuarDescasamento}" 
                                                                                Click="menuEfetuarDescasamentoOrdem_Click"
                                                                                Loaded="menuEfetuarDescasamentoExec_Loaded"/>

                                        </StackPanel>
                                    </DataTemplate>
                                </DataGrid:SinacorDataGrid.ContextMenuTemplate>

                                <DataGrid:SinacorDataGrid.Columns>
                                    <DataGrid:DataGridTextColumn Name="Data_Exec"								 				 									 				
            									 Header="{DynamicResource Bovespa.Ordens.Label.Data}"
            									 Binding="{Binding Ordem.DataOrdem}"
                                                 HorizontalCellAlignment="Center"/>
                                    <DataGrid:DataGridTextColumn Name="Ordem"								 				 									 				
            									 Header="{DynamicResource Bovespa.Ordens.Label.Ordem}"
            									 Binding="{Binding Ordem.NumeroOrdem}"
                                                 HorizontalCellAlignment="Right"/>
                                    <DataGrid:DataGridTextColumn Name="Seq"								 				 									 				
            									 Header="{DynamicResource Bovespa.Ordens.Label.Seq}"
            									 Binding="{Binding Ordem.NumeroOrdemSubSequencia}"
                                                 HorizontalCellAlignment="Right"/>
                                    <DataGrid:DataGridTextColumn Name="Ativo"								 				 									 				
            									 Header="{DynamicResource Bovespa.Ordens.Label.Ativo}"
            									 Binding="{Binding Codigo}"/>
                                    <DataGrid:DataGridTextColumn Name="Negocio"								 				 									 				
            									 Header="{DynamicResource Bovespa.Ordens.Label.negocio}"
            									 Binding="{Binding Numero}"
                                                 HorizontalCellAlignment="Right"/>
                                    <DataGrid:DataGridTextColumn Name="Quantidade"								 				 									 				
            									 Header="{DynamicResource Bovespa.Ordens.Label.Quantidade}"
            									 Binding="{Binding Quantidade, StringFormat=N4}"
                                                 HorizontalCellAlignment="Right"/>
                                    <DataGrid:DataGridTextColumn Name="Preco"								 				 									 				
            									 Header="{DynamicResource Bovespa.Ordens.Label.Preco}"
            									 Binding="{Binding Valor, StringFormat=N8}"
                                                 HorizontalCellAlignment="Right"/>
                                    <DataGrid:DataGridTextColumn Name="CV"								 				 									 				
            									 Header="{DynamicResource Bovespa.Ordens.Label.CV}"
            									 Binding="{Binding NaturezaOperacao.Text}"
                                                 HorizontalCellAlignment="Center"/>
                                    <DataGrid:DataGridTextColumn Name="Bolsa"								 				 									 				
            									 Header="{DynamicResource Bovespa.Ordens.Label.Bolsa}"
            									 Binding="{Binding Bolsa}"
                                                 HorizontalCellAlignment="Right"/>
                                    <DataGrid:DataGridTextColumn Name="Operador"								 				 									 				
            									 Header="{DynamicResource Bovespa.Ordens.Label.Operador}"
            									 Binding="{Binding Operador}"
                                                 HorizontalCellAlignment="Right"/>
                                </DataGrid:SinacorDataGrid.Columns>
                            </DataGrid:SinacorDataGrid>
                        </Grid>
                    </Controls:SinacorGroupBox>
                </Grid>
            </Controls:SinacorDragDrop>
        </Controls:SinacorExpander>
    </Controls:SinacorExpanderContainer>
</Controls:SinacorWindow>
